package com.suncaper.shop.controller;

import com.suncaper.shop.domain.Product;
import com.suncaper.shop.domain.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;
import com.suncaper.shop.service.ProductService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.Map;

/**
 * 模板引入测试
 */
@Controller
public class helloConroller {

    @Autowired
    private ProductService productService;


    @RequestMapping("/myaccount")
    public String myAccount() {
        return "my_account";
    }

    @RequestMapping("/accountdetails")
    public String accoutDetails() {
        return "account_details";
    }


    @RequestMapping("/simpleproduct")
    public String simpleproduct() {
        return "simple_product";
    }

    @RequestMapping("/createaccount")
    public String createaccount() {
        return "create_account";
    }

    @RequestMapping("/checkout")
    public String checkout() {
        return "checkout";
    }


    @RequestMapping("/address")
    public String address() {
        return "addresses";
    }


    @RequestMapping("/aboutus")
    public String aboutus() {
        return "about_us";
    }

    @RequestMapping("/add")
    public String add() {
        return "add";
    }


    @RequestMapping("/stock")
    public String stock() {
        return "stock";
    }


    @RequestMapping("/comment")
    public String comment() {
        return "comment";
    }


    @RequestMapping("/saler_login")
    public String saler_login() {
        return "saler_login";
    }

}
